@extends('admin.layouts.layout')
@section('content')
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-title">
                <h5>修改密码</h5>
            </div>
            <div class="ibox-content">
                <a class="menuid btn btn-primary btn-sm" href="javascript:history.go(-1)">返回</a>
                <a href="{{route('agent.index')}}"><button class="btn btn-primary btn-sm" type="button"><i class="fa fa-plus-circle"></i>返回列表</button></a>
                <div class="hr-line-dashed m-t-sm m-b-sm"></div>
                <form class="form-horizontal m-t-md" action="{{ route('agent.password',$finance->id)}}" method="post" accept-charset="UTF-8" enctype="multipart/form-data">
                    {!! csrf_field() !!}
                    <div class="form-group">
                        <div class="col-sm-10">
                            <div class="row">
                                <label class="col-sm-2 control-label">账号</label>
                                <div class="col-md-3">
                                    <input type="text" class="form-control" name="login_name" value="{{$finance->login_name}}" required data-msg-required="请输入账号">
                                    @if ($errors->has('login_name'))
                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>{{$errors->first('login_name')}}</span>
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-10">
                            <div class="row">
                                <label class="col-sm-2 control-label">密码</label>
                                <div class="col-md-3">
                                    <input type="text" class="form-control" placeholder="输入更改密码" name="password" value=""  data-msg-required="请输入密码   ">
                                    @if ($errors->has('password'))
                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>{{$errors->first('password')}}</span>
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="hr-line-dashed m-t-sm m-b-sm"></div>
                    <div class="form-group">
                        <div class="col-sm-12 col-sm-offset-2">
                            <button class="btn btn-primary" type="submit"><i class="fa fa-check"></i>&nbsp;保 存</button>　<button class="btn btn-white" type="reset"><i class="fa fa-repeat"></i> 重 置</button>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </form>
            </div>
        </div>
    </div>
@endsection